/**
  ******************************************************************************
  * @file    bsp_eth.h
  * @author  Iron
  * @date    2018-12-02
  * @version v1.0
  * @brief   bsp_eth header file
  */

#ifndef __BSP_ETH_H
#define __BSP_ETH_H

#ifdef __cplusplus
extern "C" {
#endif

/* includes ------------------------------------------------------------------*/
#include "lwip/err.h"
#include "lwip/netif.h"

/* exported types ------------------------------------------------------------*/
/* exported constants --------------------------------------------------------*/
/* exported macro ------------------------------------------------------------*/
/* exported functions ------------------------------------------------------- */
err_t ethernetif_init(struct netif *netif);

void ethernetif_input(struct netif *netif);
void ethernetif_update_config(struct netif *netif);
void ethernetif_notify_conn_changed(struct netif *netif);

u32_t sys_jiffies(void);
u32_t sys_now(void);

void bsp_eth_init(void);

/**
  * @}
  */

#ifdef __cplusplus
}
#endif

#endif /* __BSP_ETH_H */

/******************* (C)COPYRIGHT 2018 ***** END OF FILE *********************/
